package com.wondersgroup.restbase.dto;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * dto和业务实体映射的元注解，用于class或field的声明
 * @author wondersgroup
 *
 */
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DtoFieldMapping {

	/**dto字段名称*/
    String thisField() default "";
    /**业务实体字段名*/
    String modelField() default "";
    /**是否从请求读取*/
    boolean input() default true;
    /**是否向响应写入*/
    boolean output() default true;
}
